﻿@model Project3.Models.Meeting

@{
    ViewBag.Title = "Details";
}

<h2>@Html.DisplayFor(model=> model.EventName)</h2>

<fieldset>
    <legend>Details</legend>

    <div class="display-label"><strong>What:</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.What)
    </div>

    <div class="display-label"><strong>When:</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.When)
    </div>

    @*<div class="display-label"><strong>Where:</strong></div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Where)
    </div>*@
</fieldset>

@Html.Partial("_MapPartial")

@Html.Partial("_CommentPartial")

<ul>
    @foreach (var com in Model.Comments)
    {
        <li>
        @com => Text
        </li>
    }
</ul>


<p>
    @if (Context.User.IsInRole("Admin") ||
         Context.User.IsInRole("Moderator") ||
         Context.User.IsInRole("Organizer") )
    {
        @Html.ActionLink("Edit", "Edit", new { id = Model.MeetingID }) 
        @Html.ActionLink("Delete", "Delete", new { id = Model.MeetingID })
    }
</p>
